/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.server.modules.sys.entity.bank;

import org.hibernate.validator.constraints.Length;

import com.server.common.persistence.DataEntity;

/**
 * 银行信息Entity
 * @author 颜洪毅
 * @version 2016-10-18
 */
public class Bank extends DataEntity<Bank> {
	
	private static final long serialVersionUID = 1L;
	protected String name;		// 银行名称
	protected String note;		// 摘要
	protected String headName;		// 行长姓名
	protected String headPhone;		// 行长电话
	
	public Bank() {
		super();
	}

	public Bank(String id){
		super(id);
	}

	@Length(min=1, max=255, message="银行名称长度必须介于 1 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=0, max=255, message="摘要长度必须介于 0 和 255 之间")
	public String getNote() {
		return note;
	}

	public void setNote(String note) {
		this.note = note;
	}
	
	@Length(min=0, max=255, message="行长姓名长度必须介于 0 和 255 之间")
	public String getHeadName() {
		return headName;
	}

	public void setHeadName(String headName) {
		this.headName = headName;
	}
	
	@Length(min=0, max=255, message="行长电话长度必须介于 0 和 255 之间")
	public String getHeadPhone() {
		return headPhone;
	}

	public void setHeadPhone(String headPhone) {
		this.headPhone = headPhone;
	}
	
}